<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div style="height: 100px;background-color: gray;">
        <div style="height: 20px;margin-bottom: 20px;background-color: red;">

        </div>
        <div style="height: 20px;margin-top: 20px;background-color: green;">

        </div>
    </div>

</body>

</html>